package com.wesley.fritesfinder.controller;

import java.util.ArrayList;

import javax.xml.parsers.SAXParserFactory;

import com.wesley.fritesfinder.model.FoodShop;
import com.wesley.fritesfinder.model.MyItemizedOverlay;
import com.wesley.fritesfinder.parser.XMLParser;

public class FritesController {
	//to be updated by webservice - cached defeault file ?
	private static final String url = "http://sterf.be/mighty/actionpoints.xml"; 
	private ArrayList<FoodShop> listFoodshop;
		
	/*
	 * Called on load to populate map view.
	 * @Return: list of items
	 */
	public ArrayList<FoodShop> retrieveActionPoints() {
		//SAXParserFactory spf = SAXParserFactory.newInstance();
		XMLParser parser = new XMLParser();
		listFoodshop = parser.parseFoodshops(url);
		
		return listFoodshop;
		
	}
	
	
}
